<?php echo $header; ?>
<?php if ($error_warning) { ?>
		<div class="warning"><?php echo $error_warning; ?></div>
<?php } ?>
<div class="box">
  	<div class="left"></div>
  	<div class="right"></div>
	<div class="heading">
		<h1 ><img src="/images/admin/language.png" alt=""><?php echo "Language"; ?></h1>
	    <div class="buttons"><a onclick="$('#form').submit();" class="button"><span><?php echo "Save"; ?></span></a><a onclick="location = '<?php echo $this->cancel; ?>';" class="button"><span><?php echo "Cancel"; ?></span></a></div>
	</div>
	  <div class="content">
	    <form action="<?php echo $this->action; ?>" method="post" enctype="multipart/form-data" id="form">
	      <table class="form">
	        <tr>
	          <td><span class="required">*</span> <?php echo "Name"; ?></td>
	          <td><input type="text" maxlength="50" name="name" value="<?php echo $this->language['name']; ?>" />
	            <?php if ($this->error_name) { ?>
	            <span class="error"><?php echo $this->error_name; ?></span>
	            <?php } ?></td>
	        </tr>
	        <tr>
	          <td><span class="required">*</span> <?php echo "Code"; ?></td>
	          <td><input type="text" maxlength="10" name="code" value="<?php echo $this->language['code']; ?>" />
	            <?php if ($this->error_code) { ?>
	            <span class="error"><?php echo $this->error_code; ?></span>
	            <?php } ?></td>
	        </tr>
	        <tr>
	          <td><span class="required">*</span> <?php echo "Image"; ?></td>
	          <td><input type="text" maxlength="255" name="image" value="<?php echo $this->language['image']; ?>" />
	            <?php if ($this->error_image) { ?>
	            <span class="error"><?php echo $this->error_image; ?></span>
	            <?php } ?></td>
	        </tr>
	        <tr>
	          <td><?php echo "Status"; ?></td>
	          <td>
	          	<select name="status">
	              <?php if ($this->language['status'] == 1) { ?>
	              <option value="1" selected="selected"><?php echo "Enabled"; ?></option>
	              <option value="0"><?php echo "Disabled"; ?></option>
	              <?php } else { ?>
	              <option value="1"><?php echo "Enabled"; ?></option>
	              <option value="0" selected="selected"><?php echo "Disabled"; ?></option>
	              <?php } ?>
	            </select>
	            <?php if ($this->error_status) { ?>
	            <span class="error"><?php echo $this->error_status; ?></span>
	            <?php } ?>
	           </td>
	        </tr>
	        <tr>
	          <td><?php echo "Default"; ?></td>
	          <td>
	              <?php if ($this->language['default'] == 1) { ?>
					<input type="checkbox" name="language_default" checked="checked" value="1" onclick="return false;"/>
	              <?php } else { ?>
					<input type="checkbox" name="language_default" value="1" />
	              <?php } ?>
	           </td>
	        </tr>        
	      </table>
	    </form>
	  </div>
</div>
<?php echo $footer; ?>